package com.biz.solr.utils;


import java.io.Serializable;
import java.util.HashMap;

/**
 *@ClasName SolrContextHelper
 *@Descripution TODO 帮助当前线程处理业务使用的条件
 *@Author leikw
 *@Date 2022/3/26 8:46
 *@Version V1.0
*/
public class SolrContextHelper implements Serializable {

    private static ThreadLocal<HashMap<String , Object>> solrContextWhere = new ThreadLocal<>();

    public static HashMap<String , Object> getSolrContextWhere() {
        return solrContextWhere.get();
    }

    public static void setSolrContextWhere(HashMap<String , Object> solrContextWhere) {
        SolrContextHelper.solrContextWhere.set(solrContextWhere);
    }

}
